package com.wzz.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * @author by liutao
 * @implNote 10/20 8:57
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "coll")
public class Coll implements Serializable {

    @TableId(type = IdType.AUTO)
    private Integer id;
    private Integer dataid;
    private Integer pid;
    private Integer userid;
    private Integer tuserid;
    private String uname;
    private String tuname;
    private String type;
    private String name;
    private String title;
    private String content;
    private String poto;
    private String status;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date ctime;
    private String field1;
    private String field2;

    @TableField(exist = false)
    Integer pageNo;
    @TableField(exist = false)
    Integer pageSize;

}
